SftTree/OCX 7.0

DataObjectFiles.Add Method

Softel vdm, Inc.

Adds a filename to the DataObject.Files collection (sftCFFiles format only).

Syntax       

VB.NET

object.Add(ByVal Filename As String, [ ByVal ItemIndex As Object ] )

VB

object.Add(ByVal Filename As String, [ ByVal ItemIndex As Variant ] )

C#.NET

void object.Add(string Filename, object ItemIndex);

VC++

HRESULT object->Add(_bstr_t Filename, const _variant_t& ItemIndex = vtMissing);

C

HRESULT object->raw_Add(BSTR Filename, VARIANT ItemIndex);

Delphi

procedure object.Add(Filename : WideString, ItemIndex : OleVariant);

object

A DataObjectFiles object.

Filename

The file name to be added to the collection.

ItemIndex

The one-based position where the file name is to be inserted.  If ItemIndex is not specified, the new file name is added at the end of the collection.

Comments

The Add method adds a filename to the DataObject.Files collection (sftCFFiles format only).

The DataObject.Files collection is filled with file names only when the DataObject object contains data of type sftCFFiles.  The DataObject object can contain several different types of data.  You can iterate through the DataObject.Files collection to retrieve the list of file names.

See Also  DataObjectFiles Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com